Add docusaurus-plugin-copy-page-button#8568
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
etrepum
left a comment
There was a problem hiding this comment.
The "copy as markdown" functionality seem to work but none of the other choices appear to do anything
|
Thanks for testing this @etrepum, and good catch. That's odd because the same actions work cleanly on the React Native and PlayCanvas docs sites that recently merged this plugin. Here is a video of me using the button inside the preview deployment, claude does not work since that is an incognito window. Google.Chrome.mp4I spent a bit poking at the preview deployment and couldn't find an obvious cause in the static surface — no CSP / COOP / COEP headers, no service worker, no A couple of things that would help me narrow it down:
Thanks! |
Summary
Adds
docusaurus-plugin-copy-page-buttonto the Lexical docs site so readers can copy any page as clean markdown — useful when piping editor state, node types, or plugin architecture context into ChatGPT, Claude, Perplexity, or Gemini.The plugin auto-injects a small "Copy page" button + dropdown into the doc page's table-of-contents area. The dropdown offers:
Live preview of the UI: https://portdeveloper.github.io/copy-page-button-showcase/
Adoption
The plugin currently ships on docs sites for React Native (via facebook/react-native-website#5085), PlayCanvas, Puppeteer, Arbitrum, Cardano, Sui, Ethereum execution-apis, and others — full list in the project README.
Changes
'docusaurus-plugin-copy-page-button'to thepluginsarray inpackages/lexical-website/docusaurus.config.tsdocusaurus-plugin-copy-page-button@^0.7.0topackages/lexical-website/dependenciespnpm-lock.yamlupdatesNotes
I did not run the full
pnpm -C ../.. run build && docusaurus buildlocally — that builds every workspace package first, which is expensive. The plugin add is a single string in thepluginsarray, matching the pattern landed in facebook/react-native-website#5085 and playcanvas/developer-site#991. Happy to provide a CI-friendly verification if useful.I used my agents to generate this PR, please let me know if you have any further questions! I will be replying asap 🙏